package com.example.logistics_manage.result.restful;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class R<T> {
    private String code;
    private String massage;
    private T data;
    public R(ResponseEunm responseEnum , T data){
        this.code = responseEnum.getCode();
        this.massage = responseEnum.getMessage();
        this.data = data;
    }
}
